var Mock = require('mockjs')
module.exports = function(dataOptions = {}) {
	const responseData = {
		err_code: 0,
		err_msg: 'success'
	}
	if (Object.keys(dataOptions).length > 0) {
		const data = Mock.mock(dataOptions)
		Object.assign(responseData, { data: data })
	}
	return responseData
}
